package stream.demo1;

import java.util.function.Supplier;
import java.util.stream.Stream;

/**
 * @author ZH
 */
public class StreamTest4 {
    public static void main(String[] args) {
        Supplier<Stream<String>> supplier = () -> Stream.of("d2", "a2", "b1", "b3", "c").filter(s -> s.startsWith("b"));
        System.out.println(supplier.get().anyMatch(s -> true));
        System.out.println(supplier.get().noneMatch(s -> true));
    }
}
